package cn.rulian.base.common.fere;

import java.lang.reflect.Field;

/** 
 * 生产代码：dto至bo拷贝代码
 * 
 */
public class MackCodeDto2Bo
{
	
	public static void main(String[] args) throws ClassNotFoundException
	{
		@SuppressWarnings("rawtypes")
		Class boClass =  Class.forName("cn.rulian.demo.one.bo.One"); //bo类
		Field[] allFields = boClass.getDeclaredFields(); //返回所有属性，不包括继承的
		
		for(Field f:allFields)
		{
			String name = f.getName();
			name = name.substring(0, 1).toUpperCase() + name.substring(1);
			System.out.println("bo.set"+name+"(dto.get"+name+"());");

		}
	}
}
